package licode.unisop.log.service.adapter.util;

import licode.unisop.client.utils.SopRequestParse;
import licode.unisop.types.AuthConst;

import javax.servlet.http.HttpServletRequest;

/**
 * 根据请求获取认证相关的参数（客户和用户请求信息）
 *
 * @author WR
 */
public class ReqAssembler {
    public static String getValue(HttpServletRequest req, String key) {
        return SopRequestParse.getValue(req, key);
    }

    public static String getPlatformId(HttpServletRequest req) {
        return getValue(req, AuthConst.PLATFORM_TOKEN);
    }
}
